<?php

class ZFWork_Boxes_Tab {

	private $_active = false;
	private $_class;
	private $_id;
	private $_label;

	public function __construct($label, $id) {
		$this->_label = $label;
		$this->_id = $id;
	}

	public function getClass() {
		$class = empty($this->_class) ? '' : $this->_class;
		if ($this->isActive())
			$class .= 'active';
		return trim($class);
	}

	public function getId() {
		return $this->_id;
	}

	public function getLabel() {
		return $this->_label;
	}

	public function isActive($active=null) {
		if (!empty($active))
			$this->_active = $active;
		return $this->_active;
	}

}